From f44f87c8e166d96c97e93c9f008ccf64aa55520a Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Sun, 19 Oct 2025 18:47:31 +0200 Subject: [PATCH] dnd: Don't try to connect to transition when animations are disabled When animations are disabled, the ease has finished before the get_transition() call, causing the latter to return null, which will result in an error message when connected to. Part-of: --- js/ui/dnd.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/dnd.js b/js/ui/dnd.js index cfe8438ad..f1ddf8126 100644 --- a/js/ui/dnd.js +++ b/js/ui/dnd.js @@ -284,7 +284,7 @@ class _Draggable extends Signals.EventEmitter { }, }); - this._dragActor.get_transition('scale-x').connect('new-frame', () => { + this._dragActor.get_transition('scale-x')?.connect('new-frame', () => { this._updateActorPosition(origScale, origDragOffsetX, origDragOffsetY, transX, transY); }); -- 2.39.5